<h1>Listing users</h1>

<table>
  <tr>
    <th>FirstName</th>
    <th>LastName</th>
    <th>Metier</th>
  </tr>

<% @users.each do |user| %>
  <tr>
    <td><%=h user.firstname %></td>
    <td><%=h user.lastname %></td>
    <td><%=h Role.find(user.role_id).label.capitalize %></td>
    <td><%= link_to "details", :action => :show, :id => user.id%>
  </tr>
<% end %>
</table>